<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <script type="text/javascript">
        var ctx = "${ctx}";
    </script>
    <%@ include file="/static/pages/common.jsp" %>
    <title>业务表配置</title>
</head>
<body>
<!-- 操作按钮区 -->
<div class="search_div">
    <form id="searchForm" action="">
        <span class="search_font">业务表名称：</span>
        <input id="NAME" name="NAME" class="search_input"
               onkeypress="if(event.keyCode==13) {refreshGenTable();;return false;}"/>
        <button type="button" class="_searchbtn" onclick="refreshGenTable();">查询</button>
        <button type="button" class="_btn" onclick="formReset('searchForm');">重置</button>
        <span class="fl_r">
            <button type="button" class="_masterbtn" onclick="openAddGenTable();">新增</button>
            <button type="button" class="_btn" onclick="refreshGenTable();">刷新</button>
        </span>
    </form>
</div>
<!-- 表格区 -->
<table id="genTableGrid"></table>
<div id="genTablePager"></div>
<!-- 机构信息 -->
<div id="genTableContent" style="display: none;background-color: #F5F6FA;">
    <div class="megbox">
        <form id="genTableForm" name="genTableForm" class="megbox_form">
            <dl class="megbox_dl">
                <dd>
                    <label>表名：</label>
                    <span class="megbox_span">
                        <select id="node_type" name="node_type" class="megbox_select" style="width: 390px;">
                            <c:forEach items="${tableList}" var="table">
                                <option value="${table.NAME}">${table.NAME}:${table.COMMENTS}</option>
                            </c:forEach>
                        </select>
                    </span>
                </dd>
                <dd>
                    <button type="button" class="_masterbtn" onclick="openAddTab();">下一步</button>
                </dd>
            </dl>
        </form>
    </div>
</div>
</body>
</html>